package ilearn.seata.job.java8.account.controller;

import ilearn.seata.job.java8.account.entity.Points;
import ilearn.seata.job.java8.account.service.PointsService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class PointsController {

    @Resource
    private PointsService pointsService;

    @GetMapping("/increase")
    public Points increase(String accId, Integer change){
        return pointsService.increse(accId,change);
    }
}
